package com.wnn.demo.model.task.mapper;

import com.wnn.demo.domain.Task;
import com.wnn.demo.utils.IBaseMapper;

import java.util.List;

public interface TaskMapper extends IBaseMapper<Task> {

	/**
	 *
	 * @param task
	 */
	void save(Task task);

	/**
	 *
	 * @param task
	 */
	Integer submit(Task task);

	/**
	 *
	 * @return
	 */
	List<Task> findList();

	/**
	 *
	 * @param task
	 * @return
	 */
	Task selectOne(Task task);

	/**
	 *
	 * @param id
	 */
	Integer deletedOne(String id);

	/**
	 *
	 * @param task
	 */
	void update(Task task);

	/**
	 *
	 * @param task
	 */
	Integer submitId(Task task);

	/**
	 *
	 * @return
	 */
	List<Task> findAuditList();

	List<Task> findReleaseTask();

	List<Task> selectByTime(Task task);

    List<Task> unfinishTask();

}
